All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.Soundscape

java.lang.Object
   |
   +----javax.media.j3d.SceneGraphObject
           |
           +----javax.media.j3d.Node
                   |
                   +----javax.media.j3d.Leaf
                           |
                           +----javax.media.j3d.Soundscape

public class Soundscape
extends Leaf
The Soundscape Leaf Node defines the attributes that characterize the listener's environment as it pertains to sound. This node defines an application region and an associated aural attribute component object that controls reverberation and atmospheric properties that affect sound source rendering. Multiple Soundscape nodes can be included in a single scene graph.

The Soundscape application region, different from a Sound node's scheduling region, is used to select which Soundscape (and thus which aural attribute object) is to be applied to the sounds being rendered. This selection is based on the position of the ViewPlatform (i.e., the listener), not the position of the sound.

It will be common that multiple Soundscape regions are contained within a scene graph. For example, two Soundscape regions within a single space the listener can move about: a region with a large open area on the right, and a smaller more constricted, less reverberant area on the left. The rever- beration attributes for these two regions could be set to approximate their physical differences so that active sounds are rendered differently depending on which region the listener is in.


Variable Index

 o ALLOW_APPLICATION_BOUNDS_READ
For Soundscape component objects, specifies that this object allows read access to its application bounds
 o ALLOW_APPLICATION_BOUNDS_WRITE
For Soundscape component objects, specifies that this object allows write access to its application bounds
 o ALLOW_ATTRIBUTES_READ
For Soundscape component objects, specifies that this object allows the reading of it's aural attributes information
 o ALLOW_ATTRIBUTES_WRITE
For Soundscape component objects, specifies that this object allows the writing of it's aural attribute information

Constructor Index

 o Soundscape()
Constructs and initializes a new Sound node using following defaults:
 o Soundscape(Bounds, AuralAttributes)
Constructs and initializes a new Sound node using specified parameters

Method Index

 o getApplicationBoundingLeaf()
Retrieves the Soundscape node's application bounding leaf.
 o getApplicationBounds()
Retrieves the Soundscape node's application bounds.
 o getAuralAttributes()
Retrieve reference of Aural Attributes
 o setApplicationBoundingLeaf(BoundingLeaf)
Set the Soundscape's application region to the specified bounding leaf.
 o setApplicationBounds(Bounds)
Set the Soundscape's application region to the specified bounds specified in local coordinates of this leaf node.
 o setAuralAttributes(AuralAttributes)
Set a set of aural attributes for this Soundscape

Variables

 o ALLOW_APPLICATION_BOUNDS_READ
 public static final int ALLOW_APPLICATION_BOUNDS_READ
For Soundscape component objects, specifies that this object allows read access to its application bounds

 o ALLOW_APPLICATION_BOUNDS_WRITE
 public static final int ALLOW_APPLICATION_BOUNDS_WRITE
For Soundscape component objects, specifies that this object allows write access to its application bounds

 o ALLOW_ATTRIBUTES_READ
 public static final int ALLOW_ATTRIBUTES_READ
For Soundscape component objects, specifies that this object allows the reading of it's aural attributes information

 o ALLOW_ATTRIBUTES_WRITE
 public static final int ALLOW_ATTRIBUTES_WRITE
For Soundscape component objects, specifies that this object allows the writing of it's aural attribute information

Constructors

 o Soundscape
 public Soundscape()
Constructs and initializes a new Sound node using following defaults:

 o Soundscape
 public Soundscape(Bounds region,
                   AuralAttributes attributes)
Constructs and initializes a new Sound node using specified parameters

Parameters:
region - application region
attributes - array of aural attribute component objects

Methods

 o setApplicationBounds
 public final void setApplicationBounds(Bounds region)
Set the Soundscape's application region to the specified bounds specified in local coordinates of this leaf node. The aural attributes associated with this Soundscape are used to render the active sounds when this application region intersects the ViewPlatform's activation volume. The getApplicationBounds method returns a new Bounds object. This region is used when the application bounding leaf is null.

Parameters:
region - the bounds that contains the Soundscape's new application region.
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getApplicationBounds
 public final Bounds getApplicationBounds()
Retrieves the Soundscape node's application bounds.

Returns:
this Soundscape's application bounds information
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o setApplicationBoundingLeaf
 public final void setApplicationBoundingLeaf(BoundingLeaf region)
Set the Soundscape's application region to the specified bounding leaf. When set to a value other than null, this overrides the application bounds object.

Parameters:
region - the bounding leaf node used to specify the Soundscape node's new application region.
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getApplicationBoundingLeaf
 public final BoundingLeaf getApplicationBoundingLeaf()
Retrieves the Soundscape node's application bounding leaf.

Returns:
this Soundscape's application bounding leaf information
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o setAuralAttributes
 public final void setAuralAttributes(AuralAttributes attributes)
Set a set of aural attributes for this Soundscape

Parameters:
attributes - aural attributes
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph
 o getAuralAttributes
 public final AuralAttributes getAuralAttributes()
Retrieve reference of Aural Attributes

Returns:
reference to aural attributes
Throws: CapabilityNotSetException
if appropriate capability is not set and this object is part of live or compiled scene graph

All Packages  Class Hierarchy  This Package  Previous  Next  Index